package com.jess.arms.cj;

/**
 * @Title: GsonResponse
 * @Package com.cj.mobile.common.model
 * @Description: 网络请求的响应基类
 * @author: 王力杨
 * @date: 16/5/24 上午9:28
 */
public class GsonResponse<T> {
    // 错误代码
    private String code;
    // 错误提示
    private String message;
    // 是否失败
    private boolean fail;
    // 是否成功
    private boolean success;
    //响应信息
    private T data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isFail() {
        return fail;
    }

    public void setFail(boolean fail) {
        this.fail = fail;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
